<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class CrawlerUrl extends Model
{
    use Traits\CrawlerOriginUrlHelper;

    protected $fillable = ['url', 'category_id', 'origin_url_id', 'tags'];

    protected $connection = 'crawler-mysql';
    
    public function origin_url()
    {
        return $this->belongsTo('App\Models\Originurl');
    }
}
